
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>其他方法 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="switch.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="import.html">
            
                <a href="import.html">
            
                    
                    如何导入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="init.html">
            
                <a href="init.html">
            
                    
                    初始化和销毁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="switch.html">
            
                <a href="switch.html">
            
                    
                    开关设置
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5" data-path="others.html">
            
                <a href="others.html">
            
                    
                    其他方法
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >其他方法</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x5176;&#x5B83;&#x65B9;&#x6CD5;">&#x5176;&#x5B83;&#x65B9;&#x6CD5;</h1>
<p>&#x4E0A;&#x4F20;&#x65E5;&#x5FD7;</p>
<pre><code>QNScaleApi.uploadLog()
</code></pre><p>&#x5B89;&#x88C5;&#x6307;&#x5B9A;&#x8DEF;&#x5F84;Apk </p>
<pre><code>QNScaleApi.installNewApk(apkPath,open,pkgName)
</code></pre><table>
<thead>
<tr>
<th style="text-align:center">&#x53D8;&#x91CF;&#x540D;</th>
<th style="text-align:center">&#x7C7B;&#x578B;</th>
<th style="text-align:center">&#x8BF4;&#x660E;  </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">apkPath</td>
<td style="text-align:center">String</td>
<td style="text-align:center">apk&#x5B89;&#x88C5;&#x5305;&#x5168;&#x8DEF;&#x5F84;</td>
</tr>
<tr>
<td style="text-align:center">open</td>
<td style="text-align:center">Boolean</td>
<td style="text-align:center">&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x662F;&#x5426;&#x6253;&#x5F00;,&#x53EF;&#x4E0D;&#x4F20;&#x503C;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;false</td>
</tr>
<tr>
<td style="text-align:center">pkgName</td>
<td style="text-align:center">String</td>
<td style="text-align:center">&#x5B89;&#x88C5;&#x7684;apk&#x7684;&#x5305;&#x540D;&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#x5B89;&#x88C5;&#x540E;&#x7ACB;&#x5373;&#x542F;&#x52A8;&#xFF0C;&#x5219;&#x9700;&#x4F20;&#x503C;</td>
</tr>
</tbody>
</table>
<p>&#x8DF3;&#x8F6C;&#x5230;&#x751F;&#x4EA7;App(&#x901A;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;&#x7531;SDK&#x81EA;&#x52A8;&#x5224;&#x65AD;&#x662F;&#x5426;&#x9700;&#x8981;&#x8C03;&#x7528;)</p>
<pre><code>QNScaleApi.navigateToProduction()
</code></pre><p>&#x4E0B;&#x8F7D;&#x6700;&#x65B0;&#x7684;Android&#x7CFB;&#x7EDF;&#x56FA;&#x4EF6;(&#x5F53;SDK&#x83B7;&#x53D6;&#x5230;&#x6709;&#x6700;&#x65B0;&#x7684;&#x56FA;&#x4EF6;&#x7248;&#x672C;&#x4FE1;&#x606F;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x56DE;&#x8C03;&#x5230;ScaleEventListener&#x63A5;&#x53E3;&#x4E2D;&#x7684;onHasNewVersionFirmware(versionName:String)&#x65B9;&#x6CD5;&#x4E2D;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x56FA;&#x4EF6;&#x5347;&#x7EA7;&#xFF0C;&#x4F60;&#x5E94;&#x8BE5;&#x5728;&#x8BE5;&#x65B9;&#x6CD5;&#x4E2D;&#x8C03;&#x7528;QNScaleApi.downloadFirmware()&#x8FDB;&#x884C;&#x56FA;&#x4EF6;&#x7684;&#x4E0B;&#x8F7D;&#x64CD;&#x4F5C;)</p>
<pre><code>QNScaleApi.downloadFirmware()
</code></pre><p>&#x5B89;&#x88C5;&#x6700;&#x65B0;&#x7684;Android&#x7248;&#x672C;&#x56FA;&#x4EF6;(&#x5F53;SDK&#x83B7;&#x53D6;&#x5230;&#x56FA;&#x4EF6;&#x4E0B;&#x8F7D;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x4F1A;&#x56DE;&#x8C03;&#x5230;ScaleEventListener&#x63A5;&#x53E3;&#x4E2D;&#x7684;onFirmwareDownloadCompleted()&#x65B9;&#x6CD5;&#x4E2D;&#xFF0C;&#x5F53;&#x4F60;&#x83B7;&#x53D6;&#x5230;&#x8BE5;&#x56DE;&#x8C03;&#x540E;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x9700;&#x8981;&#x5B89;&#x88C5;&#x6700;&#x65B0;&#x7684;&#x56FA;&#x4EF6;&#x5219;&#x8C03;&#x7528;&#x4E0B;&#x9762;&#x7684;&#x65B9;&#x6CD5;&#x8FDB;&#x884C;&#x56FA;&#x4EF6;&#x7684;&#x5B89;&#x88C5;&#x5347;&#x7EA7;)</p>
<pre><code>QNScaleApi.installFirmware()
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="switch.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 开关设置">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"其他方法","level":"1.5","depth":1,"previous":{"title":"开关设置","level":"1.4","depth":1,"path":"component/switch.md","ref":"component/switch.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"component/others.md","mtime":"2020-11-23T08:21:44.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-23T09:04:17.579Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

